Meteor.publish 'activeUsers', ->
	unless this.userId
		return this.ready()

	console.log '[publish] activeUsers'.green
	#smsurl = "http://106.ihuyi.cn/webservice/sms.php?method=Submit&account=cf_mingdao&password=mingdao123&mobile=13813921633&content=http://106.ihuyi.cn/webservice/sms.php?method=Submit&account=cf_mingdao&password=mingdao123&mobile=13813921633&content=欢迎登陆Wifire热点！您的无线上网密码为【hujiaokefu】。如非本人
#操作，可不用理会。"
	#HTTP.call 'GET',smsurl, ->
	#	console.log 'sended the message'
	RocketChat.models.Users.findUsersNotOffline
		fields:
			username: 1
			status: 1
			utcOffset: 1
